ol.rt-nested-numbers:not([style*="list-style-type: lower-alpha;"]):not([style*="list-style-type: lower-roman;"]) {
    list-style-type: none;
    counter-reset: item;
    counter-set: item attr(data-counter type(<number>), 0);
    margin: 0;
    padding: 0;
    padding-inline-start: 1.625em;
    position: relative;
}

ol.rt-nested-numbers > li[style*="list-style-type: none;"]:before {
    display: none;
}

ol.rt-nested-numbers[style*="list-style-type: none;"] {
    list-style-type: none !important;
}

ol.rt-nested-numbers {
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
}

ol.rt-nested-numbers:not([style*="list-style-type: lower-alpha;"]):not([style*="list-style-type: lower-roman;"]) > li {
    display: table;
    counter-increment: item;
    /*margin-bottom: 0.6em;*/
}

ol.rt-nested-numbers:not([style*="list-style-type: lower-alpha;"]):not([style*="list-style-type: lower-roman;"]) > li:before {
    content: counters(item, ".") ". ";
    /*display: table-cell;*/
    /*padding-right: 0.6em;*/
    position: absolute;
    right: calc(100% - 1.38em);
    color: var(--tw-prose-counters);
}

ol.rt-nested-numbers > li:has(> b):before,
ol.rt-nested-numbers > li:has(> strong):before {
    font-weight: 600;
}

li ol.rt-nested-numbers:not([style*="list-style-type: lower-alpha;"]):not([style*="list-style-type: lower-roman;"]) {
    padding-inline-start: 2.5em;
}

li ol.rt-nested-numbers:not([style*="list-style-type: lower-alpha;"]):not([style*="list-style-type: lower-roman;"]) > li:before {
    content: counters(item, ".") ". ";
    right: calc(100% - 2.3em);
}
